home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re ODF and printing (II).2 < prev    next >
Encoding:
Internet Message Format  |  1996-08-09  |  2.1 KB  |  [TEXT/ttxt]

  1. Subject:     Re: ODF and printing (II)
  2. Sent:        8/9/96 11:39 AM
  3. Received:    8/9/96 11:51 AM
  4. From:        Oliver Breidenbach, oliver@boinx.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >> So I asumed that FW_CRectShape::RenderRect
  9. >>would take care of the transformation for different resolution
  10. >>outputs.
  11.  
  12. >This is not done in the FW_CRectShape. ODF has an object call 
  13. >FW_CMapping you can attach to a Graphic Context (in this case a 
  14. >FW_CViewContext). You can set your mapping object to, for example, draw 
  15. >in pixel (what ever the resolution). When no mapping object is attached 
  16. >to a graphic context 72 dpi is used. To check is your are printing or 
  17. >drawing on the screen check the ODCanvas associated with the ODFacet. 
  18. >Use ODCanvas::IsDynamic. If it returns false it means you are printing 
  19. >(We should really add a call to FW_CGraphicContext to do that). You can 
  20. >then set your mapping to take full advantage of the printer resolution.
  21. >
  22. >I hope I am answering your question.
  23. >
  24.  
  25. Henri,
  26.  
  27. you are surely trying. :-) Thanks a lot.
  28.  
  29. However, I assigned a new FW_CMapping object to the FW_CViewContext with
  30. the kFWCentimeters setting. It now uses centimeters as scale. But the
  31. printing still is in 72 dpi resolution as far as the positioning of objects
  32. is concerned. Are you sure that this is supposed to work correctly in R 1?
  33.  
  34. I see from the documentation that clearly my problem has been thought
  35. about. The implementation however does not seem obvious. I will keep
  36. trying. I still do not see where I can influence the output resolution. Do
  37. I have to change my logical coordinate system depending on the device
  38. coordinate system? Do I have to set the device coordinate system for other
  39. resolutions besides 72 dpi manually? How needs my ::Draw method act
  40. differently for the printer?
  41.  
  42. In addition I noticed that the documentation for FW_CViewContext and other
  43. subclasses of FW_CGraphicContext are missing from the R1 release on the
  44. OpenDoc DR 5 CD both in Acrobat and in QuickView format.
  45.  
  46. Cheers,
  47.  
  48. Oliver.
  49.  
  50.  
  51.  
  52.  
  53.